package com.qf.api.front.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author: sin
 * @Date: 2025/6/3 14:29
 * @Description: 前台知识库vo
 **/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class WikiVO {

    private Long id;

    private String title;

    private String cover;

    private String summary;

    private Integer visitCount;

    private Integer articleCount;

    /**
     * 第一篇文章 ID
     */
    private Long firstArticleId;

    private Integer isTop;

    // 创建时间
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;
    // 更新时间
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date updateTime;
}